home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet multimedia / Linux LiveCD / GeeXboX 1.0 EN / geexbox-1.0-en.i386.iso / GEEXBOX / usr / share / alsa / cards / VIA8233A.conf < prev    next >
Encoding:
Text File  |  2006-06-21  |  2.8 KB  |  214 lines

  1. #
  2. # Configuration for the VIA8233A chip with 4/6 multi-channel support
  3. #
  4.  
  5. <confdir:pcm/front.conf>
  6.  
  7. VIA8233A.pcm.front.0 {
  8.     @args [ CARD ]
  9.     @args.CARD {
  10.         type string
  11.     }
  12.     type hw
  13.     card $CARD
  14.     device 0
  15. }    
  16.  
  17. # default with dmix/dsnoop
  18. VIA8233A.pcm.default {
  19.     @args [ CARD ]
  20.     @args.CARD {
  21.         type string
  22.     }
  23.     type asym
  24.     playback.pcm {
  25.         type plug
  26.         slave.pcm {
  27.             @func concat
  28.             strings [ "dmix:" $CARD ]
  29.         }
  30.     }
  31.     capture.pcm {
  32.         type plug
  33.         slave.pcm {
  34.             @func concat
  35.             strings [ "dsnoop:" $CARD ]
  36.         }
  37.     }
  38. }
  39.  
  40. <confdir:pcm/surround40.conf>
  41.  
  42. VIA8233A.pcm.surround40.0 {
  43.     @args [ CARD ]
  44.     @args.CARD {
  45.         type string
  46.     }
  47.     type hooks
  48.     slave.pcm {
  49.         type hw
  50.         card $CARD
  51.         device 0
  52.         channels 4
  53.     }
  54.     hooks.0 {
  55.         type ctl_elems
  56.         hook_args [
  57.             {
  58.                 name "Swap Surround Slot"
  59.                 device 0
  60.                 lock true
  61.                 preserve true
  62.                 value false
  63.                 optional true
  64.             }
  65.             {
  66.                 name "Channel Mode"
  67.                 preserve true
  68.                 value "4ch"
  69.                 lock true
  70.                 optional true
  71.             }
  72.             # for old drivers
  73.             {
  74.                 name "Line-In As Surround"
  75.                 preserve true
  76.                 value true
  77.                 optional true
  78.             }
  79.             {
  80.                 name "Surround Down Mix"
  81.                 preserve true
  82.                 value off
  83.                 lock true
  84.                 optional true
  85.             }
  86.         ]
  87.     }
  88. }
  89.  
  90. <confdir:pcm/surround41.conf>
  91. <confdir:pcm/surround50.conf>
  92. <confdir:pcm/surround51.conf>
  93.  
  94. VIA8233A.pcm.surround51.0 {
  95.     @args [ CARD ]
  96.     @args.CARD {
  97.         type string
  98.     }
  99.     type hooks
  100.     slave.pcm {
  101.         type hw
  102.         card $CARD
  103.         device 0
  104.         channels 6
  105.     }
  106.     hooks.0 {
  107.         type ctl_elems
  108.         hook_args [
  109.             {
  110.                 name "Swap Surround Slot"
  111.                 device 0
  112.                 lock true
  113.                 preserve true
  114.                 value true
  115.                 optional true
  116.             }
  117.             {
  118.                 name "Channel Mode"
  119.                 preserve true
  120.                 value "6ch"
  121.                 lock true
  122.                 optional true
  123.             }
  124.             # for old drivers
  125.             {
  126.                 name "Line-In As Surround"
  127.                 preserve true
  128.                 value true
  129.                 optional true
  130.             }
  131.             {
  132.                 name "Mic As Center/LFE"
  133.                 preserve true
  134.                 value true
  135.                 optional true
  136.             }
  137.             {
  138.                 name "Surround Down Mix"
  139.                 preserve true
  140.                 value off
  141.                 lock true
  142.                 optional true
  143.             }
  144.             {
  145.                 name "Center/LFE Down Mix"
  146.                 preserve true
  147.                 value off
  148.                 lock true
  149.                 optional true
  150.             }
  151.         ]
  152.     }
  153. }
  154.  
  155. <confdir:pcm/iec958.conf>
  156.  
  157. VIA8233A.pcm.iec958.0 {
  158.     @args [ CARD AES0 AES1 AES2 AES3 ]
  159.     @args.CARD {
  160.         type string
  161.     }
  162.     @args.AES0 {
  163.         type integer
  164.     }
  165.     @args.AES1 {
  166.         type integer
  167.     }
  168.     @args.AES2 {
  169.         type integer
  170.     }
  171.     @args.AES3 {
  172.         type integer
  173.     }
  174.     type hooks
  175.     slave.pcm {
  176.         type hw
  177.         card $CARD
  178.         device 1
  179.     }
  180.     hooks.0 {
  181.         type ctl_elems
  182.         hook_args [
  183.             {
  184.                 name "IEC958 Playback AC97-SPSA"
  185.                 device 0
  186.                 lock true
  187.                 preserve true
  188.                 value 3
  189.             }
  190.             {
  191.                 name "IEC958 Playback Default"
  192.                 device 0
  193.                 lock true
  194.                 preserve true
  195.                 value [ $AES0 $AES1 $AES2 $AES3 ]
  196.             }
  197.             {
  198.                 name "IEC958 Playback Switch"
  199.                 device 0
  200.                 lock true
  201.                 preserve true
  202.                 value true
  203.             }
  204.             {
  205.                 name "IEC958 Output Switch"
  206.                 device 0
  207.                 lock true
  208.                 preserve true
  209.                 value true
  210.             }
  211.         ]
  212.     }
  213. }
  214.